//base
import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
//less
import './index.less'

class ShowEmpty extends Component {
  componentWillMount() {
    //onLoad
  }

  componentDidMount() {
    //onready
  }

  componentWillUnmount() {
    //onUnload
  }

  componentWillReceiveProps(nextprops) {}

  delay(time = 0) {
    return new Promise(resolve => {
      setTimeout(() => {
        resolve()
      }, time)
    })
  }

  render() {
    const { noSubText } = this.props
    return (
      <View className="ShowEmpty_id10255">
        <Image
          className="info-class-wrap"
          mode="widthFix"
          src="https://imagesize.hrwork.com/sp/files/a1244b26-4d22-4c72-ade8-214c4ffe3b75.png"
        />
        {!noSubText && <View className="info-class">没有数据哦～</View>}
      </View>
    )
  }
}

export default ShowEmpty
